package com.example.demo.marry;


public class Static implements Marry {

    MarryModel marryModel=new MarryModel();
    public Static(Marry name) {
       marryModel.name =name;
    }

    @Override
    public void HappyMarry() {
        before();
        marryModel.name.HappyMarry();
        after();
    }

    private void after() {
        System.out.println("结婚之后");
    }

    private void before() {
        System.out.println("结婚之前");
    }

}
